<%--
  Created by IntelliJ IDEA.
  User: chue
  Date: 4/3/11
  Time: 7:20 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="com.cgah.Bid" %>
<%@ page import="com.cgah.Customer" %>

<g:set var="bidEntityName" value="${message(code: 'bid.label', default: 'Bid')}"/>
<g:set var="customerEntityName" value="${message(code: 'customer.label', default: 'Customer')}" />
<g:set var="myListingEntityName" value="${message(code: 'listing.label', default: 'My Listings') }" />


<div id="nav" style="border-collapse:collapse;margin:0px; margin-top:5px;">
    <div class="homePagePanel">
        <div class="panelTop"></div>
        <div class="panelBody" style="white-space:nowrap;">
            <h1><a href="http://www.youtube.com/watch?v=IHjKuX7lvFg&feature=related" style="color:#00008b;">HellOOO<i> NURSE!</i></a> </h1>
        </div>
        <div class="panelBody">
            <ul>
                <li class="controller">
                    <span class="menuButton">
                        <a class="home" href="${createLink(uri: '/')}">
                            <g:message code="default.home.label"/>
                        </a>
                    </span>
                </li>


                <sec:ifAnyGranted roles="ROLE_ADMIN,ROLE_USER">
                <li class="controller">
                    <span class="menuButton">
                        <g:link class="list" controller="listing" action="myListings">
                            <g:message code="default.list.label" args="[myListingEntityName]"/>
                        </g:link>
                    </span>
                </li>
                </sec:ifAnyGranted>

                <sec:ifAllGranted roles="ROLE_ADMIN,ROLE_USER">
                <li class="controller">
                    <span class="menuButton">
                        <g:link class="list" controller="bid" action="list">
                            <g:message code="default.list.label" args="[bidEntityName]"/>
                        </g:link>
                    </span>
                </li>
                </sec:ifAllGranted>

                <sec:ifAllGranted roles="ROLE_ADMIN">
                 <li class="controller">
                    <span class="menuButton">
                        <g:link class="list" controller="customer" action="list">
                            <g:message code="default.list.label" args="[customerEntityName]"/>
                        </g:link>
                    </span>
                </li>
                </sec:ifAllGranted>
                
            </ul>
        </div>
        <div class="panelBtm"></div>
    </div>
</div>